<?php
	mysql_connect("localhost", "sapmenet_admin", "a1s2d3f4g5h6j7") or die ("Problem with datebase");
	mysql_select_db("sapmenet_users");
	$name=$_POST['name'];
	$result="SELECT concat(FirstName,' ',LastName) AS FullName FROM users WHERE LastName LIKE '".$name."%' OR FirstName LIKE '".$name."%' LIMIT 0 , 10";
	$result=mysql_query($result);
	while($theResult = mysql_fetch_array($result, MYSQL_NUM))
			{
				echo ($theResult[0]);
				echo (",");
			}
?>